import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//获取当前用户的主体对应的巡检任务配置信息
export function getPatrolTask(data) {
    return request({
        url: getUrl("admin/patrolTask/getPatrolTask"),
        method: 'post',
        data
    })
}

//生成及重置巡检任务配置信息
export function buildPatrolTask(data) {
    return request({
        url: getUrl("admin/patrolTask/buildPatrolTask"),
        method: 'post',
        data
    })
}

//获取区域巡检任务的列表信息
export function patrolTaskDataPage(data) {
    return request({
        url: getUrl("admin/patrolTask/patrolTaskDataPage"),
        method: 'post',
        data
    })
}
